
#ifndef ANIMATION_H
#define ANIMATION_H

#include "ImageManager.h"

namespace ETM
{
	class Animation
	{
	private:
		std::vector<sf::IntRect> frames;
		int currentFrame;
		float timePerFrame;
		float timer;

	public:
		Animation();
		Animation(int frames, float timePerFrame, int offsetX, int offsetY, int frameW, int frameH);
		void Update(float delta);

		sf::IntRect GetRect();
	};
}

#endif